<template>
  <div class="detailCss">
    <div class="titleCss">【测试数据】漳平市医院</div>
    <div class="smallTitleCss">
      <span>医疗卫生</span>
    </div>
    <div class="bodyCss">
      <div class="customTableCss" style="padding-bottom: 25px;border-bottom: 1px solid #f2f2f2;">
        <table border="1">
          <tbody>
            <tr>
              <td class="tableLabelCss">所在镇/街道</td>
              <td>菁城街道</td>
              <td class="tableLabelCss">联系电话</td>
              <td>18888888888</td>
            </tr>
            <tr>
              <td class="tableLabelCss">详细地址</td>
              <td colspan="3">【测试数据】漳平市桂林街道林隆南路66号</td>
            </tr>
          </tbody>
        </table>
      </div>
      <div class="bodyTitleCss">处置详情</div>
      <div class="bodySecondTitleCss">处置时间：{{ nowDay }}</div>
      <div class="imgBodyCss">
        <div class="imgBodyItemCss" v-for="(item ,index ) in 2" :key="index">
          <div class="imgBodyImgCss"></div>
          <div class="imgBodyTextCss">【测试数据】xxxxxxxxx单</div>
        </div>
      </div>
    </div>
    <div class="bottomBtnCss">
      <el-button @click="goBackBtn">返回</el-button>
    </div>
  </div>
</template>

<script>
import { getCurrentDay} from '@/utils/business.js'
export default {
  data(){
    return{
      nowDay:null,
    }
  },
  mounted(){
    this.nowDay = getCurrentDay()
  },
  methods:{
    goBackBtn(){
      this.$router.back()
    },
  },
}
</script>

<style lang="scss" scoped>
.detailCss{
  overflow: hidden;
  position: relative;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  height: calc( 100vh - 66px - 40px);
  display: flex;
  flex-direction: column;
  .titleCss{
    text-align: center;
    font-size: 24px;
    font-weight: bold;
  }
  .smallTitleCss{
    font-size: 18px;
    margin-top: 10px;
    text-align: center;
  }
  .bodyCss{
    margin-top: 20px;
    margin-left: 20px;
    width: calc( 100% - 10px);
    padding-right: 40px;
    overflow-y: auto;
    height: calc( 100% - 140px);
    padding-bottom: 20px;
    .customTableCss{
      table {
        border-collapse: collapse;
        width: 100%;
        line-height: 34px;
        &:not(:first-child){
          margin-top: 15px;
        }
        .tableLabelCss{
          font-weight: bold;
        }
        .tableValueCss{
          color: green;
          width: 200px;
          text-align: center;
          font-weight: bold;
        }
      }
      th, td {
        border: 1px solid black;
        padding: 8px;
        text-align: left;
      }
      th {
        background-color: #f2f2f2;
      }
      tr:last-child td {
        border-bottom: none;
      }
      td:nth-child(2) {
        border-right: none;
      }
    }
    .bodyTitleCss{
      font-size: 24px;
      font-weight: bold;
      margin-top: 20px;
    }
    .bodySecondTitleCss{
      font-size: 14px;
      margin-top: 10px;
    }
    .imgBodyCss{
      justify-content: space-between;
      display: flex;
      .imgBodyItemCss{
        margin-top: 20px;
        width: calc( 50% - 10px);
        .imgBodyImgCss{
          background-color: rgb(240, 240, 240);
          width: 100%;
          height: 240px;
          border-radius: 8px;
        }
        .imgBodyTextCss{
          margin-top: 10px;
          text-align: center;
        }
      }
    }
    
  }
  .bottomBtnCss{
    margin-top: auto;
    text-align: right;
  }
}
</style>